package com.renli.controller;


import com.renli.bean.ResultJson;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class EorrResponseController {
    @RequestMapping("/unauthorized")
    @ResponseBody
    public ResultJson unauthorized(){
        return  new ResultJson<>().setSuccess("您无权访问","403");
    }
    @RequestMapping("/logEorr")
    @ResponseBody
    public ResultJson logEorr(){
        return  new ResultJson<>().setSuccess("登录失败,用户名或者密码错误","400");
    }
}
